home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Publication 4
/
Publication_04_19xx_High-Tech_de_Side_A.d64
/
3-stimmig-gen.
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
77 lines
8 si=54272
10 dim n$(96),lb(96),hb(96),a1(150),b1(150),a2(150),b2(150),a3(150),b3(150)
100 print"[147]":forg=0to95:read n$(g),hb(g),lb(g):printn$(g):nextg:n=1
101 print"[147]";
102 print""n". 1 . note :"
103 input" ";a$
104 ifa$="ende"then200
105 forg=0to96
106 ifn$(g)=a$then108
107 next:print" fehler !":print"[145][145][145][145]":goto103
108 rem
109 a1(n)=hb(g):b1(n)=lb(g):print""n". 2 . note :"
110 input" ";a$
111 forg=0to96
112 ifn$(g)=a$then114
113 next:print" fehler !":print"[145][145][145][145]":goto110
114 a2(n)=hb(g):b2(n)=lb(g)
115 print""n". 3 . note :":input" ";a$
116 forg=0to96
117 ifn$(g)=a$then119
118 next:print" fehler !":print"[145][145][145][145]":goto115
119 rem
120 a3(n)=hb(g):b3(n)=lb(g)
121 n=n+1:goto101
200 pokesi+5,8*16+1:pokesi+6,3*16+3
201 pokesi+12,5*16+6:pokesi+13,7*16+8
202 pokesi+19,4*16+6:pokesi+20,8*16+8
203 pokesi+24,15
204 forg=1ton
205 pokesi,b1(g):pokesi+7,b2(g):pokesi+14,b3(g)
206 pokesi+1,a1(g):pokesi+8,a2(g):pokesi+15,a3(g)
207 pokesi+4,33:pokesi+11,17:pokesi+18,33
208 forq=1to200:nextq,g
209 input" ok ?";a$:ifa$="ja"then101
210 ifa$="nein"thenend
211 ifa$="save"then800
212 print"[145][145]":goto209
800 open2,8,2,"@:"+z$+".song,s,w"
801 print#2,n:forg=1ton
802 print#2,a1(g)
803 print#2,a2(g)
804 print#2,a3(g)
805 print#2,b1(g)
806 print#2,b2(g)
807 print#2,b3(g)
808 nextg:close2:end
1000 data "c0",1,22,"c#0",1,39,"d0",1,57,"d#0",1,75,"e0",1,95,"f0",1,116
1001 data "f#0",1,138,"g0",1,161,"g#0",1,186,"a0",1,212,"a#0",1,240,"h0",2,14
1002 rem
1003 data "c1",2,45,"c#1",2,78,"d1",2,113,"d#1",2,150,"e1",2,190,"f1",2,231
1004 data "f#1",3,20,"g1",3,66,"g#1",3,116,"a1",3,169,"a#1",3,224,"h1",4,27
1005 rem
1006 data "c2",4,90,"c#2",4,156,"d2",4,226,"d#2",5,45,"e2",5,123,"f2",5,207
1007 data "f#2",6,39,"g2",6,133,"g#2",6,232,"a2",7,81,"a#2",7,193,"h2",8,55
1008 rem
1009 data "c3",8,180,"c#3",9,56,"d3",9,196,"d#3",10,89,"e3",10,247,"f3",11,158
1010 data "f#3",12,78,"g3",13,10,"g#3",13,208,"a3",14,162,"a#3",15,129,"h3"
1011 data 16,109
1012 rem
1013 data "c4",17,103,"c#4",18,112,"d4",19,137,"d#4",20,178,"e4",21,237,"f4"
1014 data 23,59,"f#4",24,157,"g4",26,20,"g#4",27,160,"a4",29,69,"a#4",31,3
1015 data "h4",32,219
1016 rem
1017 data "c5",34,207,"c#5",36,225,"d5",39,18,"d#5",41,101,"e5",43,219,"f5"
1018 data 46,118,"f#5",49,58,"g5",52,39,"g#5",55,65,"a5",58,138,"a#5",62,5
1019 data "h5",65,181
1020 rem
1021 data "c6",69,157,"c#6",73,193,"d6",78,36,"d#6",82,201,"e6",87,182,"f6"
1022 data 92,237,"f#6",98,115,"g6",104,78,"g#6",110,130,"a6",117,20,"a#6",124
1023 data 10,"h6",131,105
1024 rem
1025 data "c7",139,59,"c#7",147,130,"d7",156,72,"d#7",165,147,"e7",175,107
1026 data "f7",185,218,"f#7",196,231,"g7",208,156,"g#7",221,4,"a7",234,40,"a#7"
1027 data 248,20
1028 rem
1029 data "pause",0,0